package com.thread.exe;

public class TaskRunnable implements Runnable{
	@Override
	public void run() {
		try {
			Thread.sleep(100L);
		} catch (InterruptedException e) {
			/**
			 * 恢复被中断的状态
			 * <p> If this thread is blocked in an invocation of the {@link
			 * Object#wait() wait()}, {@link Object#wait(long) wait(long)}, or {@link
			 * Object#wait(long, int) wait(long, int)} methods of the {@link Object}
			 * class, or of the {@link #join()}, {@link #join(long)}, {@link
			 * #join(long, int)}, {@link #sleep(long)}, or {@link #sleep(long, int)},
			 * methods of this class, then its interrupt status will be cleared and it
			 * will receive an {@link InterruptedException}.
			 */
			Thread.currentThread().interrupt();
		}
	}
}
